<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:VCom.Windows;assembly=MAXControls"
                    xmlns:lang="clr-namespace:UiSys.Utility.MultiLanguage;assembly=UiSys.Utility.MultiLanguage"
                    xmlns:ee="http://schemas.microsoft.com/expression/2010/effects">

  <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Key="BackgroundBorderBackground">
    <LinearGradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Offset="0" Color="#FFff8482"/>
        <GradientStop Offset="0.20" Color="#FFff8482"/>
        <GradientStop Offset="1" Color="#FFe36162"/>
      </GradientStopCollection>
    </LinearGradientBrush.GradientStops>
  </LinearGradientBrush>

  <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="BackgroundBorderbrush">
    <GradientStop Color="#00f87a79" Offset="0"/>
    <GradientStop Color="#fff87a79" Offset="0.5"/>
  </LinearGradientBrush>



  <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Key="gridRectangleFill">
    <LinearGradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Offset="0" Color="#FFda6163"/>
        <GradientStop Offset="0.10" Color="#FFf27776"/>
        <GradientStop Offset="0.85" Color="#FFf27776"/>
        <GradientStop Offset="1" Color="#FFda6163"/>
      </GradientStopCollection>
    </LinearGradientBrush.GradientStops>
  </LinearGradientBrush>

  <LinearGradientBrush StartPoint="0,0" EndPoint="1,0" x:Key="gridRectangleFill1">
    <LinearGradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Offset="0" Color="#FFda6163"/>
        <GradientStop Offset="0.10" Color="#00f27776"/>
        <GradientStop Offset="0.85" Color="#00f27776"/>
        <GradientStop Offset="1" Color="#FFda6163"/>
      </GradientStopCollection>
    </LinearGradientBrush.GradientStops>
  </LinearGradientBrush>

  <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="ButtonGridBackColor">
    <GradientStop Color="White" Offset="0.882"/>
    <GradientStop Color="#FFE8E8E6" Offset="0.176"/>
    <GradientStop Color="#FF757575" Offset="0.38"/>
  </LinearGradientBrush>
  <!--关闭按钮样式-->
  <Style TargetType="Button" x:Key="CloseButtonStyle" >
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    <Setter Property="Foreground" Value="#FF000000"/>
    <Setter Property="Padding" Value="3"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Width" Value="25"/>
    <Setter Property="Width" Value="23"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
          <Grid>
            <!--<VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderThickness)" Storyboard.TargetName="border">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Thickness>0</Thickness>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                      <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused"/>
                <VisualState x:Name="Unfocused"/>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>-->
            <Border x:Name="Background" CornerRadius="2" Background="{StaticResource BackgroundBorderBackground}" BorderBrush="#FF9B3D3D" BorderThickness="1" Visibility="Collapsed">
              <Border x:Name="border" BorderThickness="1" CornerRadius="1" BorderBrush="{StaticResource BackgroundBorderbrush}">
                <Grid x:Name="grid" Visibility="Collapsed">

                  <Rectangle RadiusX="1" RadiusY="1" Fill="{StaticResource gridRectangleFill}">
                  </Rectangle>
                  <Rectangle RadiusY="1" RadiusX="1" Fill="{StaticResource gridRectangleFill1}">
                  </Rectangle>
                </Grid>
              </Border>
            </Border>
            <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                              Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                              Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
            <Border x:Name="DisabledVisualElement" Background="#FFFFFFFF" IsHitTestVisible="false" Opacity="0" CornerRadius="0,0,0,4"/>
            <Image x:Name="img" Source="ThemesImage/Button/close_popup_hi.png"
                                 Width="11" Height="11" Visibility="Collapsed"/>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
              <!--<Setter Property="Visibility" TargetName="Background" Value="Visible" />-->
              <Setter Property="Visibility" TargetName="img" Value="Visible" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Key="MinimizeButtongridBackground">
    <LinearGradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Offset="0" Color="#FFd4e8ff"/>
        <GradientStop Offset="1" Color="#FFbfd2ea"/>
      </GradientStopCollection>
    </LinearGradientBrush.GradientStops>
  </LinearGradientBrush>


  <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Key="MinimizeButtongridFill">
    <GradientStop Offset="0" Color="#FFadc1da"/>
    <GradientStop Offset="0.15" Color="#FFb9cde5"/>
    <GradientStop Offset="0.80" Color="#FFb9cde5"/>
    <GradientStop Offset="1" Color="#FFadc1da"/>
  </LinearGradientBrush>


  <LinearGradientBrush StartPoint="0,0" EndPoint="1,0" x:Key="MinimizeButtongridFill1">
    <GradientStop Offset="0" Color="#FFadc1da"/>
    <GradientStop Offset="0.15" Color="#00b9cde5"/>
    <GradientStop Offset="0.80" Color="#00b9cde5"/>
    <GradientStop Offset="1" Color="#FFadc1da"/>
  </LinearGradientBrush>



  <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="DefaultBaseWindowBorderBackground">
    <GradientStop Color="#FFFCFCFC" Offset="1"/>
    <GradientStop Color="#FF8E8E8E" Offset="0.442"/>
  </LinearGradientBrush>


  <LinearGradientBrush EndPoint="0.5,1" x:Key="DefaultBaseWindowBorderBackground1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
    <GradientStop Offset="0.873" Color="#4CFFFFFF"/>
    <GradientStop Color="#FFEAEAEA"/>
    <GradientStop Offset="1"/>
  </LinearGradientBrush>

  <!--对话框内容border的背景颜色-->
  <!--<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="ContentGridGridBackground">
        <GradientStop Color="#FFFCFCFC" Offset="0"/>
        <GradientStop Color="#FFE6E6E4" Offset="1"/>
    </LinearGradientBrush>-->


  <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="HeaderAreaBorderBackground">
    <GradientStop Color="#FFFCFCFC" Offset="1"/>
    <GradientStop Color="#FF8E8E8E" Offset="0.442"/>
  </LinearGradientBrush>



  <!--最大化最小化按钮样式-->
    <Style TargetType="Button" x:Key="MinimizeButtonStyle" >
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Width" Value="25"/>
        <Setter Property="Width" Value="23"/>
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Background="#01FFFFFF">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                            <Border x:Name="border" Width="11" Height="2" Background="#929292" />
                        </StackPanel>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" TargetName="border" Value="#5D5D5D" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


  <Style x:Key="RestoreBtnStyleV2" TargetType="{x:Type Button}">
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    <Setter Property="Foreground" Value="#FF000000"/>
    <Setter Property="Padding" Value="0"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Width" Value="25"/>
    <Setter Property="Height" Value="23"/>
    <Setter Property="SnapsToDevicePixels" Value="true"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="Button">
          <Grid Background="Transparent">
            <VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="MouseOver">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Pressed">
                  <Storyboard>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                      <DiscreteObjectKeyFrame KeyTime="0">
                        <DiscreteObjectKeyFrame.Value>
                          <Visibility>Visible</Visibility>
                        </DiscreteObjectKeyFrame.Value>
                      </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                  <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                      <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                    </DoubleAnimationUsingKeyFrames>
                  </Storyboard>
                </VisualState>
              </VisualStateGroup>
              <VisualStateGroup x:Name="FocusStates">
                <VisualState x:Name="Focused"/>
                <VisualState x:Name="Unfocused"/>
              </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>

            <Border x:Name="Background" Background="{StaticResource MinimizeButtongridBackground}" CornerRadius="2" BorderBrush="#FF8FA5BF" BorderThickness="1" Visibility="Collapsed">
              <Grid x:Name="grid" Visibility="Collapsed">

              </Grid>
            </Border>

            <Border x:Name="RestoreBtn"  Height="20" Width="20"   Margin="2,4" BorderBrush="#FF959595" BorderThickness="0" CornerRadius="3">
              <Viewbox Margin="2">
                <Canvas Width="18" Height="18">
                  <Rectangle Width="12" Height="12" Canvas.Left="4" Canvas.Top="0" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF2D2D2D" Fill="#FFFFFFFF"/>
                  <Rectangle Width="12" Height="12" Canvas.Left="0" Canvas.Top="4" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF2D2D2D" Fill="#FFFFFFFF"/>
                </Canvas>
              </Viewbox>
            </Border>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!--普通窗口样式-->
  <Style  x:Key="DefaultBaseWindow" TargetType="{x:Type local:BaseWindow}">
    <Setter Property="CaptionHeight" Value="0"/>
    <Setter Property="Foreground"  Value="#303133" />
        <Setter Property="FontFamily"  Value="Microsoft YaHei,Microsoft JhengHei" />
        <Setter Property="TextElement.FontFamily" Value="Microsoft YaHei,Microsoft JhengHei" />
    <Setter Property="Background"  Value="White" />
    <Setter Property="AllowsTransparency"  Value="True" />
    <Setter Property="Radian"     Value="0" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="TextOptions.TextFormattingMode"  Value="Display"/>
    <Setter Property="TextOptions.TextRenderingMode"  Value="ClearType"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:BaseWindow}">
          <Grid >
            <!--背景-->
            <Border BorderThickness="1" CornerRadius="3" BorderBrush="Gray" Background="White">
              <Grid x:Name="BorderGrid"  FocusVisualStyle="{x:Null}"  >
                <Grid >
                  <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" MinHeight="3"/>
                    <RowDefinition />
                  </Grid.RowDefinitions>

                  <!--对话框头-->
                  <Border x:Name="HeaderArea"
           BorderThickness="0,0,0,1"
                      BorderBrush="#E6E6E6"
               Grid.Row="0"  CornerRadius="0,0,0,0"  FocusVisualStyle="{x:Null}"
                  Visibility="{TemplateBinding CaptionVisibility}"
                          Background="Transparent">
                    <!--<Border.Background>-->
                      <!--<ImageBrush ImageSource="PopuDialogImage/HeaderBackground.jpg"/>-->
                      <!--<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0" Color="#E7E7E7"/>
                        <GradientStop Offset="0.5" Color="#F7F7F7"/>
                        <GradientStop Offset="0.5" Color="#E6E6E6"/>
                      </LinearGradientBrush>-->
                    <!--</Border.Background>-->

                    <Grid x:Name="WindowHeader"  VerticalAlignment="Center"
                  Height="{TemplateBinding CaptionHeight}" >

                      <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                      </Grid.RowDefinitions>
                      <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                      </Grid.ColumnDefinitions>

                      <Border Grid.Row="0"   Grid.ColumnSpan="3" CornerRadius="0">
                        <!--Background="{StaticResource DefaultBaseWindowBorderBackground1}-->

                      </Border>


                      <!--对话框与标题-->
                      <!--<ContentPresenter Content="{TemplateBinding HeaderTemplate}"/>-->
                      <StackPanel Grid.RowSpan="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                        <!--<Image Source="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=HeaderIcon}" VerticalAlignment="Center" Margin="10,2,0,5"/>-->
                        <!--对话框标题左上角显示的标题-->
                        <!--<Viewbox>
                                            <Image Source="PopuDialogImage/logo.png"  Stretch="UniformToFill"  VerticalAlignment="Top" Margin="0,0,0,5"/>
                                        </Viewbox>-->
                      </StackPanel>

                      <Grid Height="35" Grid.RowSpan="2" Grid.ColumnSpan="3" VerticalAlignment="Center">
                        <TextBlock  TextTrimming="CharacterEllipsis" Foreground="#303133" FontSize="15" FontFamily="微软雅黑" Grid.ColumnSpan="3"
                                    HorizontalAlignment="Left" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Header}"
                                    ToolTip="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Header}"
                                    VerticalAlignment="Center"  Margin="20,0,0,0"/>
                      </Grid>

                      <!--<Path Grid.RowSpan="2" Grid.Column="1" Stretch="Fill" Stroke="#3E3E3E" Fill="#3E3E3E" Data="M0,0 L0,0 0,1" Width="1.5" Height="22" Visibility ="{TemplateBinding CloseButtonVisibility}"/>-->

                      <StackPanel Grid.RowSpan="2" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right"  VerticalAlignment="Center" Margin="8,0,6,0">
                        <Button  x:Name="Minimize" Command="local:BaseWindowCommands.MinWindow" IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False"  Visibility ="{TemplateBinding MinimizeButtonVisibility}">

                          <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Rectangle x:Name="MinimizeGlyph" Height="5" Margin="0,5,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="12" Fill="#3E3E3E" Stroke="#FF535666" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

                          </Grid>
                        </Button>
                        <Button  x:Name="Maximize" Command="local:BaseWindowCommands.MaxWindow"   IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding MaximizeButtonVisibility}">

                          <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <!--<Path x:Name="MaximizeGlyph" Height="15" Width="16" Fill="#3E3E3E" Stretch="Fill" Stroke="#FF525565" Data="M3.4060001,3.5940001 L3.4060001,6.4060001 L8.5939999,6.4060001 L8.5939999,3.5940001 L3.4060001,3.5940001 z M1,0.5 L11,0.5 C11.276142,0.5 11.5,0.72385764 11.5,1 L11.5,9 C11.5,9.2761421 11.276142,9.5 11,9.5 L1,9.5 C0.72385764,9.5 0.5,9.2761421 0.5,9 L0.5,1 C0.5,0.72385764 0.72385764,0.5 1,0.5 z"/>-->
                            <Border Height="12" Width="13" BorderBrush="#FF525565" BorderThickness="2" />
                            <Grid Height="11" x:Name="RestoreGlyph" Width="12" Visibility="Collapsed">

                            </Grid>
                          </Grid>
                        </Button>

                        <Button  x:Name="Close" Command="local:BaseWindowCommands.CloseWindow"  IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource CloseButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding CloseButtonVisibility}">
                          <!--<Path Height="14" HorizontalAlignment="Center" VerticalAlignment="Center" Width="14" Fill="#E4FFFFFF" Stretch="Fill" Stroke="#FF525565" Data="M0,0 L0,0 1,0 2,1 3,0 4,0 3,2 4,4 3,4 2,3 1,4 0,4 1,2 0,0 z" />-->
                          <!--Data="M0.5,0.5 L4.5178828,0.5 L6.0620003,3.125 L7.4936447,0.5 L11.5,0.5 L11.5,1.5476431 L8.7425003,6.1201854 L11.5,10.359666 L11.5,11.5 L7.4941902,11.5 L6.0620003,8.8740005 L4.5172949,11.5 L0.5,11.5 L0.5,10.43379 L3.3059995,6.1201582 L0.5,1.4676378 L0.5,0.5 z"/>-->
                          <!--<Grid Margin="2">
                            <Path Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" Width="11" Fill="#3E3E3E" Stretch="Fill" Data="M0,0 L0,0 1,0 4,4 3,4 0,0 z" />
                            <Path Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" Width="11" Fill="#3E3E3E" Stretch="Fill" Data="M0,0 L3,0 4,0 1,4 0,4 3,0 z" />
                          </Grid>-->
                          <Image Source="ThemesImage/Button/close_popup.png"
                                 Width="11" Height="11"/>
                        </Button>
                      </StackPanel>
                    </Grid>
                  </Border>


                  <!--对话框内容-->
                  <Border Background="Transparent"  Grid.Row="1" CornerRadius="0"   BorderThickness="0">
                    <Grid Margin="0"  x:Name="ContentGrid" FocusVisualStyle="{x:Null}"  ClipToBounds="True">
                      <!--<Grid.Background>
                                            <ImageBrush   ImageSource="PopuDialogImage/background.jpg" />
                                        </Grid.Background>-->
                      <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto" />
                      </Grid.RowDefinitions>
                      <Border BorderThickness="0" FocusVisualStyle="{x:Null}" >
                        <ContentPresenter x:Name="Content"
        Content="{TemplateBinding Content}"
        ContentTemplate="{TemplateBinding ContentTemplate}"
        Cursor="{TemplateBinding Cursor}"/>
                      </Border>
                    </Grid>
                  </Border>
                </Grid>

              </Grid>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="WindowState" Value="Minimized">
              <Setter TargetName="HeaderArea" Property="Width" Value="157"/>
              <Setter TargetName="HeaderArea" Property="Margin" Value="1,0,1,0"/>
              <!--<Setter TargetName="Border1" Property="Width" Value="157"/>-->
              <Setter TargetName="BorderGrid" Property="Width" Value="157"/>
              <Setter TargetName="BorderGrid" Property="Margin" Value="0"/>
              <Setter TargetName="BorderGrid" Property="HorizontalAlignment" Value="Left"/>
            </Trigger>

            <Trigger Property="WindowState" Value="Maximized">
              <Setter Property="Style" Value="{StaticResource RestoreBtnStyleV2}" TargetName="Maximize"></Setter>
            </Trigger>
            <Trigger Property="WindowState" Value="Normal">
              <Setter Property="Style" Value="{StaticResource MinimizeButtonStyle}" TargetName="Maximize"></Setter>
            </Trigger>

          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style  x:Key="DefaultBaseWindow2" TargetType="{x:Type local:BaseWindow}">
    <Setter Property="CaptionHeight" Value="0"/>
    <Setter Property="Foreground"  Value="#303133" />
    <Setter Property="FontFamily"  Value="微软雅黑" />
    <Setter Property="Background"  Value="White" />
    <Setter Property="AllowsTransparency"  Value="True" />
    <Setter Property="Radian"     Value="0" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="TextOptions.TextFormattingMode"  Value="Display"/>
    <Setter Property="TextOptions.TextRenderingMode"  Value="ClearType"/>
    <Setter Property="CaptionHeight" Value="59"/>
    <Setter Property="HeaderFontSize" Value="18"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:BaseWindow}">
          <Grid >
            <!--背景-->
            <Border BorderThickness="1" CornerRadius="3" BorderBrush="Gray" Background="White">
              <Grid x:Name="BorderGrid"  FocusVisualStyle="{x:Null}"  >
                <Grid >
                  <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" MinHeight="3"/>
                    <RowDefinition />
                  </Grid.RowDefinitions>

                  <!--对话框头-->
                  <Border x:Name="HeaderArea"
           BorderThickness="0,0,0,1"
                      BorderBrush="#E6E6E6"
               Grid.Row="0"  CornerRadius="0,0,0,0"  FocusVisualStyle="{x:Null}"
                  Visibility="{TemplateBinding CaptionVisibility}"
                          Background="Transparent">
                    <!--<Border.Background>-->
                    <!--<ImageBrush ImageSource="PopuDialogImage/HeaderBackground.jpg"/>-->
                    <!--<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0" Color="#E7E7E7"/>
                        <GradientStop Offset="0.5" Color="#F7F7F7"/>
                        <GradientStop Offset="0.5" Color="#E6E6E6"/>
                      </LinearGradientBrush>-->
                    <!--</Border.Background>-->

                    <Grid x:Name="WindowHeader"  VerticalAlignment="Center"
                  Height="{TemplateBinding CaptionHeight}" >

                      <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                      </Grid.RowDefinitions>
                      <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                      </Grid.ColumnDefinitions>

                      <Border Grid.Row="0"   Grid.ColumnSpan="3" CornerRadius="0">
                        <!--Background="{StaticResource DefaultBaseWindowBorderBackground1}-->

                      </Border>


                      <!--对话框与标题-->
                      <!--<ContentPresenter Content="{TemplateBinding HeaderTemplate}"/>-->
                      <StackPanel Grid.RowSpan="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                        <!--<Image Source="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=HeaderIcon}" VerticalAlignment="Center" Margin="10,2,0,5"/>-->
                        <!--对话框标题左上角显示的标题-->
                        <!--<Viewbox>
                                            <Image Source="PopuDialogImage/logo.png"  Stretch="UniformToFill"  VerticalAlignment="Top" Margin="0,0,0,5"/>
                                        </Viewbox>-->
                      </StackPanel>

                      <Grid Height="35" Grid.RowSpan="2" Grid.ColumnSpan="3" VerticalAlignment="Center">
                        <TextBlock  TextTrimming="CharacterEllipsis" Foreground="#303133" FontSize="15" FontFamily="微软雅黑" Grid.ColumnSpan="3"
                                    HorizontalAlignment="Left" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Header}"
                                    ToolTip="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Header}"
                                    VerticalAlignment="Center"  Margin="20,0,0,0"/>
                      </Grid>

                      <!--<Path Grid.RowSpan="2" Grid.Column="1" Stretch="Fill" Stroke="#3E3E3E" Fill="#3E3E3E" Data="M0,0 L0,0 0,1" Width="1.5" Height="22" Visibility ="{TemplateBinding CloseButtonVisibility}"/>-->

                      <StackPanel Grid.RowSpan="2" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right"  VerticalAlignment="Center" Margin="8,0,6,0">
                        <Button  x:Name="Minimize" Command="local:BaseWindowCommands.MinWindow" IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False"  Visibility ="{TemplateBinding MinimizeButtonVisibility}">

                          <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Rectangle x:Name="MinimizeGlyph" Height="5" Margin="0,5,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="12" Fill="#3E3E3E" Stroke="#FF535666" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

                          </Grid>
                        </Button>
                        <Button  x:Name="Maximize" Command="local:BaseWindowCommands.MaxWindow"   IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding MaximizeButtonVisibility}">

                          <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <!--<Path x:Name="MaximizeGlyph" Height="15" Width="16" Fill="#3E3E3E" Stretch="Fill" Stroke="#FF525565" Data="M3.4060001,3.5940001 L3.4060001,6.4060001 L8.5939999,6.4060001 L8.5939999,3.5940001 L3.4060001,3.5940001 z M1,0.5 L11,0.5 C11.276142,0.5 11.5,0.72385764 11.5,1 L11.5,9 C11.5,9.2761421 11.276142,9.5 11,9.5 L1,9.5 C0.72385764,9.5 0.5,9.2761421 0.5,9 L0.5,1 C0.5,0.72385764 0.72385764,0.5 1,0.5 z"/>-->
                            <Border Height="12" Width="13" BorderBrush="#FF525565" BorderThickness="2" />
                            <Grid Height="11" x:Name="RestoreGlyph" Width="12" Visibility="Collapsed">

                            </Grid>
                          </Grid>
                        </Button>

                        <Button  x:Name="Close" Command="local:BaseWindowCommands.CloseWindow"  IsEnabled="{TemplateBinding IsEnabled}"
                                 Style="{StaticResource CloseButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding CloseButtonVisibility}">
                          <!--<Path Height="14" HorizontalAlignment="Center" VerticalAlignment="Center" Width="14" Fill="#E4FFFFFF" Stretch="Fill" Stroke="#FF525565" Data="M0,0 L0,0 1,0 2,1 3,0 4,0 3,2 4,4 3,4 2,3 1,4 0,4 1,2 0,0 z" />-->
                          <!--Data="M0.5,0.5 L4.5178828,0.5 L6.0620003,3.125 L7.4936447,0.5 L11.5,0.5 L11.5,1.5476431 L8.7425003,6.1201854 L11.5,10.359666 L11.5,11.5 L7.4941902,11.5 L6.0620003,8.8740005 L4.5172949,11.5 L0.5,11.5 L0.5,10.43379 L3.3059995,6.1201582 L0.5,1.4676378 L0.5,0.5 z"/>-->
                          <!--<Grid Margin="2">
                            <Path Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" Width="11" Fill="#3E3E3E" Stretch="Fill" Data="M0,0 L0,0 1,0 4,4 3,4 0,0 z" />
                            <Path Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" Width="11" Fill="#3E3E3E" Stretch="Fill" Data="M0,0 L3,0 4,0 1,4 0,4 3,0 z" />
                          </Grid>-->
                          <Image Source="ThemesImage/Button/close_popup.png"
                                 Width="11" Height="11"/>
                        </Button>
                      </StackPanel>
                    </Grid>
                  </Border>


                  <!--对话框内容-->
                  <Border Background="Transparent"  Grid.Row="1" CornerRadius="0"   BorderThickness="0">
                    <Grid Margin="0"  x:Name="ContentGrid" FocusVisualStyle="{x:Null}"  ClipToBounds="True">
                      <!--<Grid.Background>
                                            <ImageBrush   ImageSource="PopuDialogImage/background.jpg" />
                                        </Grid.Background>-->
                      <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto" />
                      </Grid.RowDefinitions>
                      <Border BorderThickness="0" FocusVisualStyle="{x:Null}" >
                        <ContentPresenter x:Name="Content"
        Content="{TemplateBinding Content}"
        ContentTemplate="{TemplateBinding ContentTemplate}"
        Cursor="{TemplateBinding Cursor}"/>
                      </Border>
                    </Grid>
                  </Border>
                </Grid>

              </Grid>

            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="WindowState" Value="Minimized">
              <Setter TargetName="HeaderArea" Property="Width" Value="157"/>
              <Setter TargetName="HeaderArea" Property="Margin" Value="1,0,1,0"/>
              <!--<Setter TargetName="Border1" Property="Width" Value="157"/>-->
              <Setter TargetName="BorderGrid" Property="Width" Value="157"/>
              <Setter TargetName="BorderGrid" Property="Margin" Value="0"/>
              <Setter TargetName="BorderGrid" Property="HorizontalAlignment" Value="Left"/>
            </Trigger>

            <Trigger Property="WindowState" Value="Maximized">
              <Setter Property="Style" Value="{StaticResource RestoreBtnStyleV2}" TargetName="Maximize"></Setter>
            </Trigger>
            <Trigger Property="WindowState" Value="Normal">
              <Setter Property="Style" Value="{StaticResource MinimizeButtonStyle}" TargetName="Maximize"></Setter>
            </Trigger>

          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>


  <Style  x:Key="ContentBaseWindow" TargetType="{x:Type local:BaseWindow}">
    <Setter Property="CaptionHeight" Value="0"/>
    <Setter Property="Background"  Value="Transparent" />
    <Setter Property="Foreground"  Value="White" />
    <Setter Property="FontFamily"  Value="微软雅黑" />
    <Setter Property="Radian"      Value="5" />
    <Setter Property="TextOptions.TextFormattingMode"  Value="Display"/>
    <Setter Property="TextOptions.TextRenderingMode"  Value="ClearType"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:BaseWindow}">
          <!--背景-->
          <Grid x:Name="BorderGrid" FocusVisualStyle="{x:Null}" >
            <Border x:Name="Border1"  Background="#FFD3D3D3" BorderBrush="black" BorderThickness="1" CornerRadius="3,3,5,5" FocusVisualStyle="{x:Null}"  >

            </Border>


            <Grid >
              <Grid.RowDefinitions>
                <RowDefinition Height="Auto" MinHeight="3"/>
                <RowDefinition />
              </Grid.RowDefinitions>

              <!--对话框头-->
              <Border x:Name="HeaderArea"
               BorderBrush="#FF9D9D9D"
            BorderThickness="1,1,1,0"
                            
                            
                            
              Grid.Row="0" Background="{StaticResource HeaderAreaBorderBackground}"  CornerRadius="3,3,0,0" Margin="1" FocusVisualStyle="{x:Null}" Visibility="{TemplateBinding CaptionVisibility}">

                <Grid x:Name="WindowHeader"   Margin="1,0,1,0" VerticalAlignment="Center" Height="{TemplateBinding CaptionHeight}" >
                  <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                  </Grid.RowDefinitions>
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.3*"/>
                    <!--海松添加-->
                    <ColumnDefinition Width="0.4*"/>
                    <ColumnDefinition Width="0.3*"/>
                  </Grid.ColumnDefinitions>

                  <Border Grid.Row="0" Grid.ColumnSpan="3" CornerRadius="3,3,8,8">
                    <Border.Background>
                      <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Offset="0.873" Color="#4CFFFFFF"/>
                        <GradientStop Color="#FFEAEAEA"/>
                        <GradientStop Offset="1"/>
                      </LinearGradientBrush>
                    </Border.Background>
                  </Border>



                  <!--对话框与标题-->
                  <!--<ContentPresenter Content="{TemplateBinding HeaderTemplate}"/>-->
                  <StackPanel Grid.RowSpan="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,4,4,0">
                    <Image Source="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=HeaderIcon}" VerticalAlignment="Center" Margin="10,2,0,5"/>
                  </StackPanel>

                  <Grid Height="35" Grid.RowSpan="2" Grid.Column="1" VerticalAlignment="Center">
                    <TextBlock TextTrimming="CharacterEllipsis" Foreground="black" FontSize="18" FontFamily="微软雅黑" Grid.ColumnSpan="3" HorizontalAlignment="Center" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Header}" VerticalAlignment="Center"  Margin="5,0,0,0"/>
                  </Grid>

                  <StackPanel Grid.RowSpan="2" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right"  VerticalAlignment="Top" Margin="0,5,4,0">
                    <Button  x:Name="Minimize" Command="local:BaseWindowCommands.MinWindow" IsEnabled="{TemplateBinding IsEnabled}"
                                     Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False"  Visibility ="{TemplateBinding MinimizeButtonVisibility}">

                      <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Rectangle x:Name="MinimizeGlyph" Height="5" Margin="0,5,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="12" Fill="#E4FFFFFF" Stroke="#FF535666" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

                      </Grid>
                    </Button>
                    <Button  x:Name="Maximize" Command="local:BaseWindowCommands.MaxWindow"   IsEnabled="{TemplateBinding IsEnabled}"
                                     Style="{StaticResource MinimizeButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding MaximizeButtonVisibility}">

                      <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Path x:Name="MaximizeGlyph" Height="10" Width="12" Fill="#E4FFFFFF" Stretch="Fill" Stroke="#FF525565" Data="M3.4060001,3.5940001 L3.4060001,6.4060001 L8.5939999,6.4060001 L8.5939999,3.5940001 L3.4060001,3.5940001 z M1,0.5 L11,0.5 C11.276142,0.5 11.5,0.72385764 11.5,1 L11.5,9 C11.5,9.2761421 11.276142,9.5 11,9.5 L1,9.5 C0.72385764,9.5 0.5,9.2761421 0.5,9 L0.5,1 C0.5,0.72385764 0.72385764,0.5 1,0.5 z"/>
                        <Grid Height="11" x:Name="RestoreGlyph" Width="12" Visibility="Collapsed">

                        </Grid>
                      </Grid>
                    </Button>

                    <Button  x:Name="Close" Command="local:BaseWindowCommands.CloseWindow"  IsEnabled="{TemplateBinding IsEnabled}"
                                     Style="{StaticResource CloseButtonStyle}" IsTabStop="False" Visibility ="{TemplateBinding CloseButtonVisibility}">
                      <Path Height="10" HorizontalAlignment="Center" VerticalAlignment="Center" Width="12" Fill="#E4FFFFFF" Stretch="Fill" Stroke="#FF525565" Data="M0.5,0.5 L4.5178828,0.5 L6.0620003,3.125 L7.4936447,0.5 L11.5,0.5 L11.5,1.5476431 L8.7425003,6.1201854 L11.5,10.359666 L11.5,11.5 L7.4941902,11.5 L6.0620003,8.8740005 L4.5172949,11.5 L0.5,11.5 L0.5,10.43379 L3.3059995,6.1201582 L0.5,1.4676378 L0.5,0.5 z"/>

                    </Button>
                  </StackPanel>
                </Grid>
              </Border>


              <!--对话框内容-->
              <Grid Margin="5"  x:Name="ContentGrid" Grid.Row="1" FocusVisualStyle="{x:Null}"  ClipToBounds="True">

                <Grid.RowDefinitions>
                  <RowDefinition/>
                  <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Border BorderThickness="0" FocusVisualStyle="{x:Null}" >
                  <ContentPresenter x:Name="Content"
              Content="{TemplateBinding Content}"
              ContentTemplate="{TemplateBinding ContentTemplate}"
              Cursor="{TemplateBinding Cursor}"/>
                </Border>
              </Grid>
            </Grid>

          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="WindowState" Value="Minimized">
              <Setter TargetName="HeaderArea" Property="Width" Value="157"/>
              <Setter TargetName="HeaderArea" Property="Margin" Value="1,0,1,0"/>
              <Setter TargetName="Border1" Property="Width" Value="157"/>
              <Setter TargetName="BorderGrid" Property="Width" Value="157"/>
              <Setter TargetName="BorderGrid" Property="Margin" Value="0"/>
              <Setter TargetName="BorderGrid" Property="HorizontalAlignment" Value="Left"/>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>



  <Style x:Key="WizardSplitter" TargetType="{x:Type GridSplitter}">
    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
    <Setter Property="Background">
      <Setter.Value>
        <SolidColorBrush Color="#00000000"/>
      </Setter.Value>
    </Setter>
  </Style>


  <Storyboard x:Key="hideWizardContent">
    <!--<DoubleAnimationUsingKeyFrames BeginTime="0">
            <EasingDoubleKeyFrame KeyTime="0" Value="50"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames  BeginTime="0">
            <EasingDoubleKeyFrame KeyTime="0" Value="0.3"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
        </DoubleAnimationUsingKeyFrames>-->
    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
      <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
      <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
    </DoubleAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.6000000" Value="{x:Static Visibility.Collapsed}"/>
    </ObjectAnimationUsingKeyFrames>
  </Storyboard>

  <Storyboard x:Key="showWizardContent" BeginTime="0">
    <!--<DoubleAnimationUsingKeyFrames >
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="50"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames  BeginTime="0">
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.3"/>
        </DoubleAnimationUsingKeyFrames>-->
    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.1000000" Storyboard.TargetProperty="(UIElement.Opacity)">
      <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
      <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
    </DoubleAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00.1000000" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.6000000" Value="{x:Static Visibility.Visible}"/>
    </ObjectAnimationUsingKeyFrames>
  </Storyboard>

  <Storyboard x:Key="flashPopuDialog" BeginTime="0">
    <!--<DoubleAnimationUsingKeyFrames BeginTime="00:00:00.0000000" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.0400000" Value="0.8"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.0400000" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.04" Value="0.8"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.08000000" Value="0.2"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.08000000" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.08" Value="0.2"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.1200000" Value="0.8"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.1200000" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.12" Value="0.8"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.1600000" Value="0.2"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.1600000" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.16" Value="0.2"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
        </DoubleAnimationUsingKeyFrames>-->
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00.0000000" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.0400000" Value="{x:Static Visibility.Hidden}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00.0400000" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00.0400000" Value="{x:Static Visibility.Hidden}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.0800000" Value="{x:Static Visibility.Visible}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00.0800000" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00.0800000" Value="{x:Static Visibility.Visible}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.1200000" Value="{x:Static Visibility.Hidden}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames BeginTime="00:00:00.1200000" Storyboard.TargetProperty="(UIElement.Visibility)">
      <DiscreteObjectKeyFrame KeyTime="00:00:00.1200000" Value="{x:Static Visibility.Hidden}"/>
      <DiscreteObjectKeyFrame KeyTime="00:00:00.1600000" Value="{x:Static Visibility.Visible}"/>
    </ObjectAnimationUsingKeyFrames>
  </Storyboard>

  <Style x:Key="NormalWindow" BasedOn="{StaticResource DefaultBaseWindow}" TargetType="{x:Type local:BasePopupDialog}">
    <Setter Property="CaptionHeight" Value="59"/>
    <Setter Property="HeaderFontSize" Value="18"/>
  </Style>
</ResourceDictionary>